package com.crdeng.business.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.crdeng.business.entity.InStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crdeng.business.vo.InStockItemVO;
import com.crdeng.business.vo.InStockVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author crdeng
 * @since 2021-01-03
 */


public interface InStockMapper extends BaseMapper<InStock> {

    IPage<InStockVO> findInStockPage(IPage<InStockVO> page,@Param(Constants.WRAPPER) Wrapper<InStockVO> queryWrapper);

    /**
     * 根据单号查询入库信息
     * @param
     * @return
     */
    IPage<InStockItemVO> getStockInfo(IPage<InStockItemVO> page,@Param(Constants.WRAPPER) Wrapper<InStockItemVO> queryWrapper);

   // List<InStockItemVO> getStockInfo(String inNum);
}
